package hu.findyourguide.base.service;

import hu.findyourguide.base.domain.BaseEntity;

import java.util.List;

public interface BaseService<E extends BaseEntity> {

	public long count();
	public void delete(E entity);
	public void delete(Long id);
	public E find(Long id);
	public List<E> findAll();
	public List<E> findEntries(int firstResult, int maxResults);
	public void save(E entity);
	public E update(E entity);
}
